package 继承;

public class dog {
    public void eat(){
        System.out.println("在吃饭");
    }
}
class cat{
    public void rat(){
        System.out.println("aaaaa");
    }
}